#include"listnode.h"

int main()
{
	SListNode* plist = NULL;
	SListPushFront(&plist, 3);
	SListPushFront(&plist, 2);
	SListPushFront(&plist, 1);
	SListPrint(plist);
	
	SListPushBack(&plist, 0);
	SListPushBack(&plist, 1);
	SListPushBack(&plist, 2);
	SListPushBack(&plist, 3);
	SListPrint(plist);

	SListPopBack(&plist);
	SListPopBack(&plist);
	SListPopBack(&plist);
	SListPrint(plist);

	/*SListPopFront(&plist);
	SListPopFront(&plist);*/
	SListPopFront(&plist);
	SListPrint(plist);

	SListNode* p = SListFind(plist, 2);
	printf("%p\n", p);

	SListInsertAfter(p, 2);
	SListInsertAfter(p, 1);
	SListInsertAfter(p, 1);
	SListPrint(plist);

	SListEraseAfter(p);
	SListPrint(plist);

}